﻿#include "stdafx.h"	   //   U҉U҉U	 for unicoude save

#include <ProUtil.h>

#include "TkreseachMenuAction.h"



extern "C" int user_initialize(int /*argc*/ ,char** /*argv*/,char* /*version*/, char* /*build*/ ,  wchar_t /*errbuf*/[80] )
{
	int proe_wchar_size;
	int protk_wchar_size = sizeof (wchar_t);

	if (ProWcharSizeVerify (protk_wchar_size, &proe_wchar_size) !=   PRO_TK_NO_ERROR)	
	{
		return (1);
	}

	AllocConsole() ;
	AttachConsole( GetCurrentProcessId() );
	FILE* pFile;
	_tfreopen_s( &pFile,_T("CONOUT$"), _T("w"), stdout ) ;
	_tfreopen_s( &pFile,_T("CONOUT$"), _T("w"), stderr ) ;

	//添加菜单
	TkreseachMenuAction::AddPopupMenu()   ;

	

	//在这里添加其他初始化代码.

	return PRO_TK_NO_ERROR;
}



extern "C" void user_terminate()
{

}